<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html>
    <head>
        <title>{{ $msg }}-页面提示</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' />
        <meta name='apple-mobile-web-app-status-bar-style' content='default' />
        <meta name='apple-mobile-web-app-capable' content='yes' />
        <style>
            html, body {
                margin: 0;
                padding: 0;
                border: 0 none;
                font: 14px Tahoma, Verdana;
                line-height: 150%;
                background: white
            }
            a {
                text-decoration: none;
                color: #174B73;
                border-bottom: 1px dashed gray
            }
            a:hover {
                color: #F60;
                border-bottom: 1px dashed gray
            }
            div.message {
                margin: 10% auto 0px auto;
                clear: both;
                padding: 5px;
                border: 1px solid silver;
                text-align: center;
                width: 45%;
                padding-bottom:20px;
            }
            span.wait {
                color: blue;
                font-weight: bold
            }
            span.error {
                color: red;
                font-weight: bold
            }
            span.success {
                color: blue;
                font-weight: bold
            }
            div.msg {
                margin: 20px 0px
            }
        </style>
    </head>
    <body>
        <div class="message">
            <div class="msg">
                {{ if $state eq 'error' }}
                <span class="error">{{ $msg }}</span>
                {{ else }}
                <span class="success">{{ $msg }}</span>
                {{ /if }}
            </div>
            <div class="tip">
                页面将在 <span class="wait" id="divWait">{{ $time }}</span> 秒后自动跳转，如果不想等待请点击 <a href="{{ $url }}">这里</a> 跳转
                <script type="text/javascript">
                    window.setInterval(function() {
                        var num = document.getElementById("divWait").innerHTML;
                        if (num > 0) {
                            document.getElementById("divWait").innerHTML = num - 1;
                        } else {
                            window.location.href = "{{ $url }}";
                        }
                    }, 1000)
                </script>
            </div>
        </div>
    </body>
</html>